<template>
	<div>
    	<div class="welcome">
    		<img src="http://cas.spt518.com/gleenSoft-base/web/static/timg.jpg" width="100%" height="100%">
    	</div>
	</div>
</template>
<script>
export default {
	data(){
		return {
			timeout:3
		}
	},
	mounted(){
		if (window.localStorage.getItem('token')) {
		   	this.$router.push({
            	path: 'index'
          	})
		}
		let time = setInterval(()=>{
			if(this.timeout<=1){
	            clearInterval(time)
	            this.$router.push({
	            	path: 'index'
	          	})
        	}else{
        		this.timeout -= 0.1
        	}
        },100)
	}
}

</script>
<style>
.welcome{
	
}
</style>